class Coaches::Level < ApplicationRecord
  belongs_to :course
  belongs_to :company, optional: true
  belongs_to :store, optional: true
  belongs_to :coach
  has_many :salaries, class_name: "Coaches::Salaries::List"
  accepts_nested_attributes_for :salaries, allow_destroy: true
  enum status: {rejected: -1, pending: 0, accepted: 1}
  enum level: {'L1': 1, 'L2': 2, 'L3': 3, 'L4': 4, 'L5': 5}
end
